xenstored: fix use-after free bug
authorKeir Fraser <keir.fraser@citrix.com>
Sun, 1 Mar 2009 14:50:04 +0000 (14:50 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sun, 1 Mar 2009 14:50:04 +0000 (14:50 +0000)
commit1622101b19ef43860f846353ceef1b0bbf0ebab2
tree7050b8a55b739d90eadcb5f198ef689dcd752c31
parenta81c6629250cb09057c9d352dd55b561da4332e3
xenstored: fix use-after free bug

Problem:  Handling requests for one connection can not only zap the
connection itself, due to socket disconnects for example.  It can also
zap *other* connections, due to domain release requests.  Especially
it can zap the connection we have saved a pointer to in the "next"
variable.

From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/xenstore/xenstored_core.c